package Day05;

public class Test02 {
    public static void main(String[] args) {
          getMin(0.5,1.6);
    }
    public static void getMin(double a,double b){
        if(a<0||b<0){
            System.out.println("小数不能为负");
        }else {
            if(a<b){
                System.out.println(a);
            }else {
                System.out.println(b);
            }
        }


    }
}
